home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
edit
/
aaem95ma.zip
/
EXAMPLES
< prev
next >
Wrap
INI File
|
1992-08-21
|
2KB
|
37 lines
[AAEMACS EXAMPES]
(The line prefixes e.g. 'user:' are who or what types/displays each part.)
(If your EM command calls AAEMACS)
--------------------------------------------------------------------------------
(1) To enter AAEMACS and load and bind several files at once, if you want to
edit several times the same set of files:-
If file BIND is an AAEMACS macrofile, e.g.:-
#buffer("\\am\\main.cc",keyseq(f1))
#buffer("\\am\\display.cc",keyseq(f2))
#buffer("\\am\\readmacr.cc",keyseq(f3))
#buffer("\\am\\keyf.cc",keyseq(f4))
#buffer("\\am\\em.cc",keyseq(f5))
#buffer("\\am\\em.h",keyseq(f6))
#buffer("\\am\\bind",keyseq(f7))
#buffer("\\am\\readme",keyseq(f8))
#buffer("\\am\\wishlist",keyseq(f9))
#buffer("\\am\\info.dat",keyseq(f10))
#buffer("\\am\\help.big",keyseq(f11))
#buffer("\\am\\help",keyseq(f12))
DOS: prompts user for a command.
user: types 'e m space b i n d'
DOS: calls AAEMACS, which loads file BIND and displays it in white.
user: types 'alt-X r e a d m a c r o s pageup pageup'
emacs: obeys all the #buffer() commands listed above. In more detail:-
user: types 'alt-X'
emacs: calls routine callsubr.
callsubr: asks for a routine name (request in magenta).
user: types 'r e a d m a c r o s pageup' (echoed in cyan).
emacs: calls routine readmacros.
readmacros: asks user for a filename (request in magenta),
displaying (in this case) filename in cyan as "previous reply".
user: types 'pageup', thus inputting the "previous reply" as filename.
readmacros: loads files and binds the resulting buffers to keys as above.
readmacros: exits to emacs.
emacs: repairs the screen display; awaits user response.